import request from "../index";
//获取品牌
export const appletBasGoodsBrand = params => {
    return request.get('/api/dropDown/basGoodsBrandList', params)
}
//获取商品 包含促销
export const basGoodsListForAdd = params => {
    return request.get('/api/dropDown/basGoodsListForAddWithGiftPromotion', params)
}
//字典
export const getDict = data => {
    return request.get('/api/dropDown/dict/detail', data)
}
//终端分类
export const getEndCustomerType = data => {
    return request.get('/api/dropDown/getEndCustomerType', data)
}
//审批流
export const handleApprove= (data) => {
    return request.post(`/api/appApproveFlow/handleApprove`,data)
}

//获取部门
export const childSysDeptList= (data) => {
    return request.get(`/api/dropDown/childSysDeptList`,data)
}
//获取部门下属人员
export const deptJuniorUserList= (data) => {
    return request.get(`/api/dropDown/deptJuniorUserList`,data)
}
//获取销售类型
export const getSaleType= () => {
    return request.get(`/api/dictDetail?dictCode=t_sales_order_sale_type&page=1&size=9999`)
}
//任务指派
export const appMissionPoint= (data) => {
    return request.get(`/api/appMissionPoint`,data)
}
//任务完成
export const appMissionPointFinish= data => {
    return request.post('/api/appMissionPoint/finish', data)}
//任务新增
export const appMissionPointAdd= data => {
    return request.post('/api/appMissionPoint/add', data)}
//获取商品类型
export const basGoodsTagList= (data) => {
    return request.get(`/api/dropDown/basGoodsTagList`,data)
}

//获取商品分类子节点
export const basGoodsTypeList= (data) => {
    return request.get(`/api/dropDown/childBasGoodsTypeList`,data)
}

//获取商品档案
export const appBasGoods= (data) => {
    return request.get(`/api/dropDown/basGoodsList`,data)
}
//保存商品档案
export const appBasGoodsAddOrSave= (data) => {
    return request.post(`/api/appletBasGoods/addOrSave`,data)
}

  // 构建APP菜单
  export const buildMenus = data => {
    return request.get('/api/appletIndex/buildMenus', data)
  }
//审批列表-待办审批
  export const getTaskApprove= (data) => {
    return request.get(`/api/appApproveFlow/getTaskApprove`,data)
}
//审批列表-已审批
export const getOperationLog= (data) => {
    return request.get(`/api/appApproveFlow/getOperationLog`,data)
}
//获取公告
export const getMyNotice= (data) => {
    return request.get(`/api/appletSysNotice/myNotice`,data)
}
//获取公告
export const readMyNotice= (data) => {
    return request.post(`/api/appletSysNotice/readMyNotice`,data)
}
//新增工作日志
export const addWorkLog= (data) => {
    return request.post(`/api/appWorkLog/addOrSave`,data)
}

//工作日志列表
export const workLogList= (data) => {
    return request.get(`/api/appWorkLog`,data)
}